<?php 
session_start();
$a = 0;
if (isset($_SESSION['a'])) 
    $a = $_SESSION['a'];
$a++;
echo ($a);
$_SESSION['a'] = $a;
?>
<form action="" method="">
<input type="submit" value="Ya SABIR"/>
</form>